package com.myworkspace.standard;

import com.myworkspace.standard.web.service.IndexService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
public class StandardApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(StandardApplication.class, args);
        IndexService bean = run.getBean(IndexService.class);
        System.out.println(bean.getClass());
        // 文档备份
        System.out.println("斯人若彩虹，遇上方知有");
        System.out.println(run.getClass());
    }

}
